import axios from '@/libs/api.request'

// 应收账单
export class FinanceReceivableBillApi {
  // 获取应收账单管理列表数据
  static getList (params) {
    return axios.request({
      url: '/FinanceReceivableBill/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取差额所属编号
  static getBalanceNos (params) {
    return axios.request({
      url: '/FinanceReceivableBill/GetBalanceNos',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 获取差额所属项目
  static getBalanceProgramNames (params) {
    return axios.request({
      url: '/FinanceReceivableBill/GetBalanceProgramNames',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 添加应收差额说明
  static postReceivableBalanceLog (params) {
    return axios.request({
      url: '/FinanceReceivableBill/PostReceivableBalanceLog',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 应收差额说明列表_new
  static getBalanceRemarks (params) {
    return axios.request({
      url: '/FinanceReceivableBill/GetBalanceRemarks',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取已填写的差额说明
  static getBalanceRemarksLog (params) {
    return axios.request({
      url: '/FinanceReceivableBill/GetBalanceRemarksLog',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出
  static export (params) {
    return axios.request({
      url: '/FinanceReceivableBill/Export',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
